#include<iostream>

using namespace std;

void triangle(unsigned int m, unsigned int n)
{
	if(m>n)
		return;

	for (int i = 0; i <= m; i++)
	{
		cout << "*";
	}
	cout << endl;

	triangle(m+1,n);

	for (int i = 0; i <= m; i++)
	{
		cout << "*";
	}
	cout << endl;


}

int main()
{
	triangle(3,5);
	system("PAUSE");
	return 0;
}
